cryptoServiceInfo

fun cryptoServiceInfo(name: String, lookup: String, resolve: () -> <Error class: unknown class><String, Provider>): CryptoServiceInfo?

Performs resolve and reads the algorithm and provider off the instance it returned, so what is reported is what the platform actually handed back.

Null when the lookup fails: a debug screen must not bring down the caller over a missing algorithm.

Parameters

name

what the lookup is for, e.g. Asset cipher.

lookup

the lookup performed, as written in the source. Interpolate the same constants resolve uses, so this cannot describe a lookup the call sites do not make.

resolve

the JCA lookup, returning its result's algorithm and provider.